package com.ftg.learn.sys.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ftg.learn.comm.entity.sys.Resources;
import com.ftg.learn.util.ResBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 资源表（权限表|菜单表） 服务类
 * </p>
 *
 * @author kangjx
 * @since 2022-10-30
 */
public interface IResourcesService extends IService<Resources> {

    List<Resources> showResourceByUid(@Param("uid") Integer uid);


    ResBean showResourceByRoleid(@Param("rid") Integer rid);

    ResBean showAll();

    ResBean udpateResName(Integer resid, String resName);
}
